package com.example.aopdemo.controller;

import com.example.aopdemo.annotation.MyApect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class MyApectController {
    @MyApect
    @RequestMapping("/h1")
    public String h1() {
        return "h1";
    }
    @MyApect
    @RequestMapping("/h2")
    public String h2() {
        return "h2";
    }

}
